package com.thinkgem.jeesite.modules.university.utils;

import java.util.List;

import com.thinkgem.jeesite.common.utils.SpringContextHolder;
import com.thinkgem.jeesite.modules.university.entity.DisciplineFields;
import com.thinkgem.jeesite.modules.university.entity.MajorCategory;
import com.thinkgem.jeesite.modules.university.service.MajorCategoryService;

public class MajorCategoryUtils {

	private static MajorCategoryService majorCategoryService = SpringContextHolder.getBean(MajorCategoryService.class);
	
	/**
	 * 通过学科门类查询专业类别集合
	 * @return
	 */
	public static List<MajorCategory> getMajorCategoryListByDfId(String disciplineFieldsId){
		MajorCategory majorCategory = new MajorCategory();
		majorCategory.setDisciplineFields(new DisciplineFields(disciplineFieldsId));
		return majorCategoryService.findList(majorCategory);
	}
}
